<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./mobileLayout.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="header">
        Licence4
    </ui:define>

    <ui:define name="content">

        <f:view>
            <h:form>
                <a href="sms:0675016892">send sms</a>
                <a href="tel:0675016892">call me</a>
                <div data-role="collapsible-set" data-theme="e" data-content-theme="e">
                    <ui:repeat value="#{mobileController.softwares}" var="soft">


                        <div data-role="collapsible" data-collapsed="true">
                            <h3><h:outputText value="#{soft.name}"/></h3>
                            <h4>Choose your licence</h4>
                            <p>
                                <ui:repeat value="#{soft.licenceSoftwareCollection}" var="licence">
                                    <label>

                                        <h:selectBooleanCheckbox title="#{licence.name}"/>#{licence.name}
                                    </label>
                                </ui:repeat>
                            </p>


                        </div>
                    </ui:repeat>




                </div>

                <!--    <ul data-role="listview" data-inset="true" data-filter="true">
                        <ui:repeat value="#{mobileController.softwares}" var="soft">
                            <li>
                                <h:commandLink action="#" value="#{soft.name}"></h:commandLink>
                            </li>
                        </ui:repeat>
                    </ul>-->
                <p>Vous recherchez une Licence IV, III ou II...</p>

                <h:commandButton action="#{mobileController.doShowLogin}" value="Login"/>
                <h:commandButton action="#{mobileController.doShowCreateAccount}" value="Create account"/>
            </h:form>
        </f:view>

    </ui:define>


</ui:composition>
